package cn.yeziji.forum.service.impl;

import cn.yeziji.forum.common.key.UserCacheKey;
import cn.yeziji.forum.service.CacheService;
import cn.yeziji.forum.service.abstruct.CacheInstance;
import org.springframework.stereotype.Service;

/**
 * 缓存服务逻辑实现层
 *
 * @author gzkemays
 * @since 2022/4/20 8:13
 */
@Service
public class CacheServiceImpl extends CacheInstance implements CacheService {
  @Override
  public void clearAllUserCache() {
    cacheUtils.blurRemoveHash(UserCacheKey.COMMON_USER_PREFIX, null);
  }
}
